<html>
	<head>
		<meta charset="utf-8"/>
		<title>BHtmlItem</title>
		<link rel="stylesheet" type="text/css" href="../style.css"/>
	</head>
	<body>
		<h1>BHtmlItem</h1>
		<p>Inherites from <a href="BXmlNode.html">BXmlNode</a></p>
		<h2>public</h2>
		<table id="public">
			<tr><td align="right"/><td><a href="#BHtmlItem(BHtmlItem*)">BHtmlItem</a>(BHtmlItem* parent = 0);</td></tr>
			<tr><td align="right"/><td><a href="#BHtmlItem(BXmlNode*,BHtmlItem*)">BHtmlItem</a>(BXmlNode* node, BHtmlItem* parent = 0);</td></tr>
			<tr><td align="right"/><td><a href="#BHtmlItem(const BString&,BHtmlItem*)">BHtmlItem</a>(const BString& name, BHtmlItem* parent = 0);</td></tr>
			<tr><td align="right"/><td><a href="#~BHtmlItem()">~BHtmlItem</a>();</td></tr>
			<tr><td align="right">void </td><td><a href="#setSelected(bool)">setSelected</a>(bool selected);</td></tr>
			<tr><td align="right">bool </td><td><a href="#selected()">selected</a>() const;</td></tr>
			<tr><td align="right">virtual bool </td><td><a href="#setName(const BString&)">setName</a>(const BString& name);</td></tr>
			<tr><td align="right">virtual bool </td><td><a href="#setFormat(const BString&)">setFormat</a>(const BString& format);</td></tr>
			<tr><td align="right">virtual bool </td><td><a href="#setText(const BString&)">setText</a>(const BString& text);</td></tr>
			<tr><td align="right">virtual bool </td><td><a href="#setAttrib(const BString&, const BString&)">setAttrib</a>(const BString& name, const BString& value);</td></tr>
			<tr><td align="right">const BRect& </td><td><a href="#rect()">rect</a>() const;</td></tr>
			<tr><td align="right">const BFont* </td><td><a href="#font()">font</a>() const;</td></tr>
			<tr><td align="right">BHtmlWidget* </td><td><a href="#htmlWidget()">htmlWidget</a>();</td></tr>
			<tr><td align="right">const BHtmlWidget* </td><td><a href="#htmlWidget()">htmlWidget</a>() const;</td></tr>
			<tr><td align="right">BHtmlItem* </td><td><a href="#parent()">parent</a>();</td></tr>
			<tr><td align="right">const BHtmlItem* </td><td><a href="#parent()">parent</a>() const;</td></tr>
			<tr><td align="right">BHtmlItem* </td><td><a href="#parent(const BString&)">parent</a>(const BString& name);</td></tr>
			<tr><td align="right">const BHtmlItem* </td><td><a href="#parent(const BString&)">parent</a>(const BString& name) const;</td></tr>
			<tr><td align="right">bool </td><td><a href="#addChild(BHtmlItem*)">addChild</a>(BHtmlItem* item);</td></tr>
			<tr><td align="right">bool </td><td><a href="#insertChild(int, BHtmlItem*)">insertChild</a>(int pos, BHtmlItem* item);</td></tr>
			<tr><td align="right">bool </td><td><a href="#removeChild(const BHtmlItem*)">removeChild</a>(const BHtmlItem* item);</td></tr>
			<tr><td align="right">BHtmlItem* </td><td><a href="#child(int)">child</a>(int index);</td></tr>
			<tr><td align="right">const BHtmlItem* </td><td><a href="#child(int)">child</a>(int index) const;</td></tr>
		</table>
		<h2>protected</h2>
		<table id="protected"/>
		<div id="desc">
			<h2>Detailed Description : </h2>
			<p>BHtmlItem is has paint infomation for xml node, managed by BHtmlWidget.</p>
		</div>
		<h2 id="docs">Member Function Documentation</h2>
		<div id="BHtmlItem(BHtmlItem*)">
			<h3>BHtmlItem(BHtmlItem* parent = 0);</h3>
			<p>Constructs html item with parent item.</p>
		</div>
		<div id="BHtmlItem(BXmlNode*,BHtmlItem*)">
			<h3>BHtmlItem(BXmlNode* node, BHtmlItem* parent = 0);</h3>
			<p>Contructs html itm with a node and parent item. This item will copy data of node, and this item will create children of each child of node. This method is useful to create html item tree from a xml node tree.</p>
			<p>See also : BHtmlWidget::open</p>
		</div>
		<div id="BHtmlItem(const BString&,BHtmlItem*)">
			<h3>BHtmlItem(const BString& name, BHtmlItem* parent = 0);</h3>
			<p>Constructs html item with name and parent item. Equals calling setName.</p>
		</div>
		<div id="~BHtmlItem()">
			<h3>~BHtmlItem();</h3>
			<p>Destroy html item.</p>
		</div>
		<div id="setSelected(bool)">
			<h3>void setSelected(bool selected);</h3>
			<p>If item is inside of html widget this method works. This will cause the ownner html widget emit Signal_ItemSelected.</p>
		</div>
		<div id="selected()">
			<h3>bool selected() const;</h3>
			<p>Get selected state of item.</p>
		</div>
		<div id="setName(const BString&)">
			<h3>virtual bool setName(const BString& name);</h3>
			<p>Reimplemented from BObject::setName to notify the owner html widget that item is changed.This will cause the html widget emits Signal_ItemChanged.</p>
		</div>
		<div id="setFormat(const BString&)">
			<h3>virtual bool setFormat(const BString& format);</h3>
		</div>
		<div id="setText(const BString&)">
			<h3>virtual bool setText(const BString& text);</h3>
			<p>Reimplemented from BXmlNode::setText to notify the owner html widget that item is changed. This method will cause the html widget emits Signal_ItemChanged.</p>
		</div>
		<div id="setAttrib(const BString&, const BString&)">
			<h3>virtual bool setAttrib(const BString& name, const BString& value);</h3>
			<p>Reimplemented from BXmlNode::setAtrrib to notify the owner html widget that item is changed, This method will cause the html widget emits Signal_ItemChanged.</p>
		</div>
		<div id="rect()">
			<h3>const BRect& rect() const;</h3>
			<p>Return item rect in html widget if item has owner html widget, otherwise return rect(0, 0, 0, 0);</p>
		</div>
		<div id="font()">
			<h3>const BFont* font() const;</h3>
			<p>Return font of item if item has owner html widget, otherwise return 0.</p>
		</div>
		<div id="htmlWidget()">
			<h3>BHtmlWidget* htmlWidget();</h3>
			<p>Get item's owner html widget.</p>
		</div>
		<div id="htmlWidget()">
			<h3>const BHtmlWidget* htmlWidget() const;</h3>
		</div>
		<div id="parent()">
			<h3>BHtmlItem* parent();</h3>
			<p>Covers the BXmlNode::parent check if this is a BHtmlItem or BXmlNode.</p>
		</div>
		<div id="parent()">
			<h3>const BHtmlItem* parent() const;</h3>
		</div>
		<div id="parent(const BString&)">
			<h3>BHtmlItem* parent(const BString& name);</h3>
			<p>Recursively find parent matchs the name.</p>
		</div>
		<div id="parent(const BString&)">
			<h3>const BHtmlItem* parent(const BString& name) const;</h3>
		</div>
		<div id="addChild(BHtmlItem*)">
			<h3>bool addChild(BHtmlItem* item);</h3>
			<p>Add a child item.</p>
		</div>
		<div id="insertChild(int, BHtmlItem*)">
			<h3>bool insertChild(int pos, BHtmlItem* item);</h3>
			<p>Insert a child item at pos.</p>
		</div>
		<div id="removeChild(const BHtmlItem*)">
			<h3>bool removeChild(const BHtmlItem* item);</h3>
			<p>Remove a child item.</p>
		</div>
		<div id="child(int)">
			<h3>BHtmlItem* child(int index);</h3>
			<p>Covered BXmlNode::child for checking if item si a BHtmlItem.</p>
		</div>
		<div id="child(int)">
			<h3>const BHtmlItem* child(int index) const;</h3>
		</div>
	</body>
</html>